<%@ Page Language="C#" AutoEventWireup="true" CodeFile="BusinessUnitConfig.aspx.cs" Inherits="BusinessUnitConfig" MasterPageFile="app-frame.master" Title="App Frame"%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolder3" runat="server" ID="Content3"   >
<script language="javascript" src="../js/JScript.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript" src="scripts/BusinessUnitConfig.js"></script><%--Added by Jayashree on 12-Sep-2014,for js file--%>
<table id="TABLE1" runat="server" width="100%" border="0"  cellpadding="0" cellspacing="0">
    <tr>
        <td colspan ="6">
            <asp:Label ID="lblMessage" runat="server" EnableViewState="False" Font-Names="Arial"
            Font-Size="X-Small" ForeColor="Black"></asp:Label>
        </td>
    </tr>
    <tr>
        <td colspan ="6"  class="Dynamic_PageHeaderRow">
        <asp:Label ID="lblHeader" runat="server" Text="Business Unit " Width="228px"></asp:Label>
        </td> 
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label1" runat="server" Text="Business Unit" Font-Names="Arial" Font-Size="8pt" CssClass="controlLabelFont"></asp:Label>
                     <img src="Images/star.gif" alt="Required Field" /> 
        </td>
        <td valign="top">
            <asp:TextBox ID="TB_business_unit" runat="server" Font-Names="Arial" Font-Size="8pt" MaxLength="100"  Width="210px"></asp:TextBox>
    

            </td>
              <td style="height: 21px; text-align: left;padding:0px 50px 0px 10px">
            

            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TB_business_unit"
                Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>&nbsp;
                 <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server"  TargetControlID="RequiredFieldValidator1"
                WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" >
            </cc1:ValidatorCalloutExtender> 
        </td>
         <td valign="top">
            <asp:Label ID="Label7" runat="server" Text="Business Unit Description" Font-Names="Arial" Font-Size="8pt" CssClass="controlLabelFont"></asp:Label>
            <img src="Images/star.gif" alt="Required Field" />
        </td>
        <td valign="top">
            <asp:TextBox ID="TB_business_unit_desc" runat="server" Font-Names="Arial" Font-Size="8pt" MaxLength="100"  Width="210px"></asp:TextBox>
             
             </td>
              <td style="height: 21px; text-align: left;padding:0px 50px 0px 10px">
           
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TB_business_unit_desc"
                Display="None" ErrorMessage="This is a required field."></asp:RequiredFieldValidator>&nbsp;
                 <cc1:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server"  TargetControlID="RequiredFieldValidator2"
                WarningIconImageUrl="Images/warning_small.gif" HighlightCssClass="maskInvalid" >
            </cc1:ValidatorCalloutExtender> 
        </td>
        
    </tr>
    <tr>
        <td valign="top">
            <asp:Label ID="Label2" runat="server" Text="Parent Business Unit" Font-Names="Arial" Font-Size="8pt" CssClass="controlLabelFont"></asp:Label>
        </td>
        <td valign="top">
            <asp:DropDownList ID="DD_parent_business_unit" runat="server" Width="210px" Font-Names="Arial" Font-Size="8pt">
            </asp:DropDownList>
        </td>
         <td></td>
        <td valign="top">
            <asp:Label ID="Label5" runat="server" Font-Names="Arial" Font-Size="8pt" Text="Owner ID"
                Width="108px" CssClass="controlLabelFont"></asp:Label>
        </td>
        <td valign="top">
            <asp:TextBox ID="TB_owner_id" runat="server" Width="210px" Enabled="false"  Font-Names="Arial" Font-Size="8pt">
            </asp:TextBox>
        </td>
        <td></td>
    </tr> 
    <tr style="height:0px">
        
         <td valign="top">
            <asp:Label ID="Lbl_hierarchy_level" runat="server" Font-Names="Arial" Font-Size="8pt" Text="Hierarchy Level"
                Width="108px" CssClass="controlLabelFont"></asp:Label>
        </td>
        <td valign="top">
            <asp:DropDownList ID="DD_hierarchy_level" runat="server" Width="210px" Font-Names="Arial" Font-Size="8pt">
            </asp:DropDownList>
        </td>
       
    </tr>
    <tr>
        <td valign="top" colspan="4" >
            <asp:HiddenField ID="ps_rowkey" runat="server" />
            <asp:HiddenField ID="HF_owner_id" runat="server" />
            <asp:HiddenField ID="HF_created_by" runat="server" />
        </td>
    </tr>
<tr style="height:5px" ></tr>
    <tr>
        <td colspan="6" class="Dynamic_PageHeaderRow" >
            <span id="Span1" runat="server" style="font-size: 9pt; font-family: Arial;vertical-align:middle ">Business Unit Hierarchy</span>  
        </td>
    </tr>
    <tr>
        <td colspan="6" >
            <asp:TreeView runat="server" ID="tv_Bu" Font-Names="Arial" Font-Size="8pt" CssClass="controlLabelFont"></asp:TreeView>
        </td> 
    </tr>
    <tr>
        <td  colspan="6" class="Dynamic_PageHeaderRow"><div style="text-align:center">
        <asp:Button ID="btnSave" runat="server" Text="Save" UseSubmitBehavior="true" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...');" OnClick="btnSave_Click" />
                            <asp:Button ID="btnSaveNew" runat="server"  Text="Save & Next" UseSubmitBehavior="False" OnClientClick="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSaveNew','Saving...');" OnClick="btnSaveNew_Click" />
            <%--<input type="submit" value="Save" id="btnSave" runat="server"  onclick ="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Saving...');disableThis('ctl00_ContentPlaceHolder3_btnSaveNxt','Save & Next');" onserverclick="btnSave_ServerClick" />
            <input  type="button" value="Save & Next" id="btnSaveNxt" runat="server"  onclick ="javascript:disableThis('ctl00_ContentPlaceHolder3_btnSave','Save');disableThis('ctl00_ContentPlaceHolder3_btnSaveNxt','Saving...');"   onserverclick="btnSaveNxt_ServerClick"  />--%>
            <%--<input type="submit" value="Save & Next" id="btnSaveandNext" runat="server"  />--%>
            <input type="submit" value="Update" id="btnUpdate" runat="server" onclick ="javascript:disableThis('ctl00_ContentPlaceHolder3_btnUpdate','Updating...');" onserverclick="btnUpdate_ServerClick" />&nbsp;
            <input type="button" value="Reset" id="btnReset" runat="server" onclick="aspnetForm.reset();return false;"  />
            </div>
        </td>
    </tr>
</table> 
</asp:Content>